import { http } from './http'
export const getUsers = () => {
  return http.get('/users')
}

export const login = (data) => {
  return http.post('/login', data)
}

export const register = (data) => {
  return http.post('/register', data)
}

export const getUserInfo = () => {
  return http.get('/userInfo')
}
